#pragma once

extern  CCoinReport   g_coinReport;

class CCoinReport
{
public:
	CCoinReport(void);
	~CCoinReport(void);

	BOOL OpenReport( void );

	BOOL InsertReport(  wstring strDate,
						wstring strTime,								
						wstring strUser,
						wstring mac ,
						wstring ip,
						wstring strName,
						int     nHour,
						int     nMinute,
						wstring strCost,
						DWORD   dwExpire,
						int     nSongLeft,
						int     nCoinLeft,
						wstring  strStatus, 
						wstring  strNote );

	BOOL AutoReport( CAtomDicti *pRoomToEdit, wstring strUser, wstring strNote );

	void CloseReport( void );

	CSqliteConn* GetDatabasePtr(void);

protected:

	CSqliteConn    m_connReport;

};
